import request from '@/utils/request'

export function getOrderRefundList (params:any) {
    return request({
        url: 'store.orderRefund/list',
        method: 'GET',
        params
    })
}
export function getOrderRefundDetail (params:{
    id:number
}) {
    return request({
        url: 'store.orderRefund/detail',
        method: 'GET',
        params
    })
}
//审核
export function auditOrderRefund (data:any) {
    return request({
        url: `store.orderRefund/audit`,
        method: 'PUT',
        data
    })
}
//确定已收货
export function receiptOrderRefund (data:any) {
    return request({
        url: `store.orderRefund/receipt`,
        method: 'PUT',
        data
    })
}
//重新发货
export function deliveryOrderRefund (data:any) {
    return request({
        url: `store.orderRefund/delivery`,
        method: 'PUT',
        data
    })
}
//用户已到店
export function arrivalOrderRefund (data:any) {
    return request({
        url: `store.orderRefund/arrival`,
        method: 'PUT',
        data
    })
}
//确定收货并退款
export function receiptAndReFundOrderRefund (data:any) {
    return request({
        url: `store.orderRefund/receiptReFund`,
        method: 'PUT',
        data
    })
}
